package com.ghp.common.constants;

/**
 * @author ghp
 * @title 系统常量池
 * @description
 */
public class SystemConstants {
    private SystemConstants() {
    }

    // 非业务常量

    /**
     * mapper包路径
     */
    public static final String MAPPER_PACKAGE_PATH = "com.ghp.admin.mapper";

    /**
     * controller包路径
     */
    public static final String CONTROLLER_PACKAGE_PATH = "com.ghp.admin.controller";

    /**
     * 接口文档标题
     */
    public static final String API_DOCUMENT_TITLE = "接口文档";

    /**
     * 接口文档简洁
     */
    public static final String API_DOCUMENT_DESCRIPTION = "api-hub项目接口文档";

    /**
     * 接口文档版本
     */
    public static final String API_DOCUMENT_VERSION = "v1.0";


    // 业务相关常量

    /**
     * 是否逻辑删除 0-未删除 1-已删除
     */
    public static final int NOT_DELETE = 0;

    /**
     * 是否逻辑删除 0-未删除 1-已删除
     */
    public static final int ALREADY_DELETE = 1;

    /**
     * 升序
     */
    public static final String SORT_ORDER_ASC = "ASC";

    /**
     * 降序
     */
    public static final String SORT_ORDER_DESC = " DESC";

    /**
     * GET请求方式
     */
    public static final String GET_METHOD = "GET";
    /**
     * POST请求方式
     */
    public static final String POST_METHOD = "POST";
    /**
     * PUT请求方式
     */
    public static final String PUT_METHOD = "PUT";
    /**
     * DELETE请求方式
     */
    public static final String DELETE_METHOD = "DELETE";
    /**
     * OPTIONS请求方式
     */
    public static final String OPTIONS_METHOD = "OPTIONS";

    /**
     * token请求头
     */
    public static final String TOKEN_HEADER_KEY = "Authorization";

}
